package com.rz.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rz.admin.entity.SysDictData;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  mapper 接口
 * </p>
 *
 * @author Rui.Zhou
 * @since 2018-07-12
 */
public interface SysDictDataMapper extends BaseMapper<SysDictData> {

    @Select("select id,dict_value,dictdata_name as name,dictdata_value as value from sys_dict_data where dict_value = #{val} order by dictdata_value")
    List<SysDictData> getByDictValue(String dictValue);
}
